import { createSlice } from "@reduxjs/toolkit";
import React from "react";
import { Image } from "react-native";

interface IUserArguments {
  avatar: React.ComponentProps<typeof Image>["src"];
  name?: string;
  phone?: string;
}

const userSlice = createSlice({
  name: "user",
  initialState: {
    avatar: "https://avatars.githubusercontent.com/u/102167655?v=4",
    // name: "未设置用户名",
    // phone: "未设置联系方式",
  } as IUserArguments,
  reducers: {},
});

export { userSlice, IUserArguments };
